<?php

class registrar_producto extends CI_Controller{
    
    function __construct() {
        parent::__construct();
        $this->_is_logued_in();
        
    }


    function index(){
        
        $data['title'] = 'Registrar producto';
        $data['main_content'] = 'avm/productos';
        $this->load->view('includes/template', $data);
        
    }
    
    function reg_producto(){
        
        
        
    }




    function _is_logued_in(){
      
        $is_logued_in = $this->session->userdata('is_logued_in');
      $user_id = $this->session->userdata('user_id');
        if ($is_logued_in != true OR $user_id == '') {
    
            redirect('users/login');
            
        }
    }
    
}
?>
